
package org.apache.mina.common;

/**
 * A configuration which is used to configure {@link IoConnector}.
 * 
 * IoConector的配置。
 */
public interface IoConnectorConfig extends IoServiceConfig {
    /**
     * Returns the connect timeout in seconds.
     * 
     * 返回连接超时，单位秒
     */
    int getConnectTimeout();

    /**
     * Returns the connect timeout in milliseconds.
     * 
     * 返回连接超时，单位毫秒。
     */
    long getConnectTimeoutMillis();

    /**
     * Sets the connect timeout in seconds.
     * 
     * 设置连接超，参数单位为秒。
     */
    void setConnectTimeout(int connectTimeout);
}
